<?php
namespace app\index\model;
use think\Model;
class Data extends Model
{
	public function getStatusAttr($value){
		$data = [
				0 => '支付失败',
				1 => '待激活',
				2 => '未支付，代发货',
				3 => '已发货，代签收',
				4 => '申请退货',
				5 => '退款完成'];
		return $data[$value];
	}
	public function setNameAttr($value){
		return strtolower($value);
	}
}